import%20marimo%0A%0A__generated_with%20%3D%20%220.17.6%22%0Aapp%20%3D%20marimo.App(width%3D%22medium%22%2C%20auto_download%3D%5B%22html%22%2C%20%22ipynb%22%5D)%0A%0A%0A%40app.cell%0Adef%20_()%3A%0A%20%20%20%20import%20seaborn%20as%20sns%0A%20%20%20%20import%20matplotlib.pyplot%20as%20plt%0A%20%20%20%20from%20sklearn.metrics%20import%20confusion_matrix%0A%0A%20%20%20%20%23%20Let's%20say%20these%20are%20our%20true%20labels%20and%20predicted%20labels%0A%20%20%20%20y_true%20%3D%20%5B%22Cat%22%2C%20%22Dog%22%2C%20%22Cat%22%2C%20%22Cat%22%2C%20%22Dog%22%2C%20%22Bird%22%5D%0A%20%20%20%20y_pred%20%3D%20%5B%22Cat%22%2C%20%22Cat%22%2C%20%22Cat%22%2C%20%22Bird%22%2C%20%22Dog%22%2C%20%22Bird%22%5D%0A%20%20%20%20labels%20%3D%20%5B%22Cat%22%2C%20%22Dog%22%2C%20%22Bird%22%5D%0A%0A%20%20%20%20%23%20Generate%20the%20matrix%0A%20%20%20%20cm%20%3D%20confusion_matrix(y_true%2C%20y_pred%2C%20labels%3Dlabels)%0A%0A%20%20%20%20%23%20Plot%20it%0A%20%20%20%20plt.figure(figsize%3D(8%2C%206))%0A%20%20%20%20sns.heatmap(cm%2C%20annot%3DTrue%2C%20fmt%3D'd'%2C%20cmap%3D'Greens'%2C%20xticklabels%3Dlabels%2C%20yticklabels%3Dlabels)%0A%20%20%20%20plt.xlabel('Predicted')%0A%20%20%20%20plt.ylabel('Actual')%0A%20%20%20%20plt.title('Confusion%20Matrix')%0A%20%20%20%20plt.show()%0A%20%20%20%20return%0A%0A%0A%40app.cell%0Adef%20_()%3A%0A%20%20%20%20return%0A%0A%0Aif%20__name__%20%3D%3D%20%22__main__%22%3A%0A%20%20%20%20app.run()%0A
6f2c302b0cdb650a6fd090898689890e97cd6bd97e80f1ea3b1c82cd816e579c